package com.javastudy.autowiredStudy.restTemplateStudy;

import org.slf4j.MDC;

/**
 * traceID工具
 * @author mac
 * @date 2021/9/7 6:01 下午
 */
public class MdcUtils {
    private static final String TRACE_ID = "TRACE_ID";

    public static String get(){
        return MDC.get(TRACE_ID);
    }

    public static void add(String value){
        MDC.put(TRACE_ID,value);
    }
}
